<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>欢迎登录宿迁金鑫</title>
    <style>
    </style>
</head>
<body>
<a class="media"></a>
</body>
<script src="assets/js/jquery-3.2.1.min.js"></script>
<script src="assets/js/jquery.media.js"></script>
<script>
    $(function () {
        var paramStr = window.location.href.split("?")[1];
        if (paramStr && paramStr.indexOf('=') != -1) {
            var params = paramStr.split("&");
            params.forEach(x => {
                if (x.indexOf('pdf') != -1) {
                    $(".media").attr('href', x.split("=")[1]
                    )
                } else if (x.indexOf('title'!=-1)) {
                    $("title").text( decodeURI(x.split("=")[1]) )
                }
            })

        }
        var w = document.documentElement.clientWidth;
        var h = document.documentElement.clientHeight;
        $('a.media').media({width: w, height: h});
    });

</script>
</html>

